package com.mrd.gtimpframe.service;

import com.mrd.gtimpframe.entity.RejectRecord;

import java.util.List;
import java.util.Map;

public interface RejectRecordService {
    int deleteByPrimaryKey(String id);

    /**
     * id自动生成
     */
    int insert(RejectRecord record);

    /**
     * id自动生成
     */
    int insertSelective(RejectRecord record);

    RejectRecord selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(RejectRecord record);

    int updateByPrimaryKey(RejectRecord record);

    /**
     * 根据非null属性查询
     */
    List<RejectRecord> selectSelective(RejectRecord params);

    /**
     * 根据报关单ids查询未处理的驳回申请
     */
    List<RejectRecord> selectByDidsInit(String[] declarationIds);

    /**
     * 自定义查询条件及字段查询
     *
     * @param propertyMap 需要获取的报关单属性,whereCase:查询条件
     */
    List<RejectRecord> selectByWhereCase(Map<String, String> propertyMap);
}